﻿using System;

namespace HobSoft.SoccerBet2014.Domain.Models.KeyHelper
{
    public class GameKeyGenerate : IModelKeyGenerate<Game>
    {
        public string Create(params object[] args)
        {
            if (args.Length < 2)
                throw new ArgumentException("args need 2");
            return string.Format("{0}-{1}", args);
        }

        public string Create(Game mod)
        {
            return Create(mod.BmID, mod.GameID);
        }


        public Tuple<K1, K2> Resolve<K1, K2>(string key)
        {
            var keys=key.Split('-');
            byte bmId=0;

            throw new NotImplementedException();
        }

        public Tuple<K1, K2, K3> Resolve<K1, K2, K3>(string key)
        {
            throw new NotImplementedException();
        }
    }
}
